/*
 * @(#)HelloController.java	1.0 2011-11-9
 *
 * Copyright 2011 Seasky Inc Ltd. All rights reserved.
 */
package com.seasky.jae.action;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 类目信息JDO
 *
 * @author Scott Guan
 * @date 2011-11-9
 * @version 1.0
 */
@Controller
public class HelloAction {

	@RequestMapping("/hello/{name}")
    public String hello(@PathVariable String name, Model model) {
            model.addAttribute("name", name);
            return "hello";
    }
	
	@RequestMapping("/goodbye/{name}")
    public String goodbye(@PathVariable String name, Model model) {
            model.addAttribute("name", name);
            return "goodbye";
    }
	
}
